<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            text-align: center;
            background-color: cornflowerblue;
        }
        .font1{
            color: aqua;
            size: 50px;
            display: inline
        }
        .h1{
            color: gray;
            size: 50px;
        }
        .div{
            color: rgb(0, 0, 0);
            size: 50px;
        }
    </style>
</head>
<body>
    <h1 class="h1"><p class="font1">《</p>红楼梦<p class="font1">》</p></h1>
    <div class = "div"><p class="font1">“</p>石头记<p class="font1">”</p></div>
    <h2 id = "h2">木石前盟 <p class="font1">&</p> 金玉良缘</h2>
    <script>
        console.log(document.getElementById("h2"))
        console.log(document.getElementsByClassName("font1"))
        console.log(document.getElementsByTagName("div"))
    </script>
</body>
</html>